const package = require("../package.json");
const chalk = require("chalk");

module.exports = function (program) {
    program
        .command("version")
        .description("当前版本")
        .action(function () {
            console.log(chalk.green("版本号" + package.version));
            console.log(chalk.green("源代码" + package.repository.url));
        });
};
